import { Controller, Get } from "@nestjs/common";
import { Cat } from "src/common/types/cats.type";
import { CatsService } from "./cats.service";
import { Public } from "src/decorators/is-public.decorator";

@Controller('/cats')
export class CatsController {
    constructor(private readonly catsService: CatsService) { }

    @Public()
    @Get()
    findAll(): Cat[] {
        return this.catsService.findAll();
    }
}
